// 导入登录接口
import { searchobj } from '../utils/public'
export default {
    namespaced: true,
    actions: {
        handleLogin(store, userInfo) {            
            return new Promise((resolve, reject) => {
                const logininfo = searchobj(userInfo)
                if (logininfo.code != 1) {
                    reject({ code: 0, message: '错了哦，这是一条错误消息' })
                }
                resolve({ code: 1, message: '成功' })
            })


        }
    },
    mapActions: {},
    state: {

    },
    getters: {},
}